﻿<%@ Page Title="Registration Page" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="PSUA_RideSharing.Pages.Registration.Default" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .auto-style1
        {
            width: 154px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:Panel ID="CreateAccountPanel" runat="server" GroupingText="Create Your Account" Width="611px">
        <table id="registration">
            <tr>
                <td><asp:Label ID="Label5" runat="server" Text="Name:"></asp:Label></td>
                <td><asp:TextBox ID="txtBoxName" runat="server"></asp:TextBox></td>
                <td><asp:RequiredFieldValidator ID="ValName" runat="server" ControlToValidate="txtBoxName" ErrorMessage="Please enter a name!*" ForeColor="Red"></asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td><asp:Label ID="Label1" runat="server" Text="Email address:"></asp:Label></td>
                <td><asp:TextBox ID="txtBoxEmail" TextMode="Email" runat="server"></asp:TextBox></td>
                <td><asp:RequiredFieldValidator ID="valEmail" runat="server" ControlToValidate="txtBoxEmail" ErrorMessage="Please enter an email!*" ForeColor="Red"></asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td><asp:Label ID="Label6" runat="server" Text="Zip Code:"></asp:Label></td>
                <td><asp:TextBox ID="txtBoxZipCode" runat="server"></asp:TextBox></td>
                <td><asp:RequiredFieldValidator ID="valZipCode" runat="server" ControlToValidate="txtBoxZipCode" ErrorMessage="Please enter a zip code!*" ForeColor="Red"></asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td><asp:Label ID="Label2" runat="server" Text="Username:"></asp:Label></td>
                <td><asp:TextBox ID="txtBoxUserName" runat="server"></asp:TextBox></td>
                <td><asp:RequiredFieldValidator ID="valUsername" runat="server" ControlToValidate="txtBoxUserName" ErrorMessage="Please enter a user name!*" ForeColor="red"></asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td><asp:Label ID="Label3" runat="server" Text="Password:"></asp:Label></td>
                <td><asp:TextBox ID="txtBoxPassword" TextMode="Password" runat="server"></asp:TextBox></td>
                <td><asp:RequiredFieldValidator ID="valPassword" runat="server" ControlToValidate="txtBoxPassword" ErrorMessage="Please enter a password!*" ForeColor="red"></asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td><asp:Label ID="Label4" runat="server" Text="Confirm Password:"></asp:Label></td>
                <td><asp:TextBox ID="txtBoxCPassword" TextMode="Password" runat="server"></asp:TextBox></td>
                <td><asp:RequiredFieldValidator ID="valConfirmPassword" runat="server" ControlToValidate="txtBoxCPassword" ErrorMessage="Please enter a confirm password!*" ForeColor="red"></asp:RequiredFieldValidator><br />
                    <asp:CompareValidator ID="valPasswordCompare" ControlToValidate="txtBoxCPassword" ControlToCompare="txtBoxPassword" runat="server" ErrorMessage="Password is not the same!" ForeColor="Red"></asp:CompareValidator></td>
            </tr>
            <tr>
                <td><asp:Button ID="btnClear" runat="server" Text="Clear" Width="100px" /></td>
                <td style="float:right"><p class="submit"><asp:Button ID="btnRegister" runat="server" Text="Register" OnClick="btnRegister_Click" /></p></td>
            </tr>
        </table>
    </asp:Panel>
    <asp:Panel ID="AccountCreatedPanel" runat="server" GroupingText="Account Created!" Width="611px" Visible="false">
        <table>
            <tr>
                <td>Your account has been created! <asp:HyperLink ID="HyperLink1" NavigateUrl="~/Pages/Login/Default.aspx" runat="server">Click Here</asp:HyperLink>  continue.</td>
            </tr>
        </table>
    </asp:Panel>

                
</asp:Content>
